package com.bh.extend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆维修记录对象 jc_vehicle_head_fix_record
 *
 * @author slx
 * @date 2023-03-26
 */
@ApiModel(value = "车辆维修记录对象", description = "车辆维修记录对象")
@TableName("jc_vehicle_head_fix_record")
@EqualsAndHashCode(callSuper = true)
@Data
public class JcVehicleHeadFixRecord extends BaseEntity {
    

    /**
     * 维修记录唯一标识主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 车辆唯一标识外键
     */
    @Excel(name = "车辆唯一标识外键")
    private String vehicleHeadId;

    /**
     * 维修日期
     */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "维修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fixDate;

    /**
     * 维修类型
     */
    @Excel(name = "维修类型")
    private String fixType;

    /**
     * 维修描述
     */
    @Excel(name = "维修描述")
    private String fixDescription;

    /**
     * 维修费用
     */
    @Excel(name = "维修费用")
    private BigDecimal fixCost;

    /**
     * 送修人
     */
    @Excel(name = "送修人")
    private String fixPerson;

    /**
     * 维修图片
     */
    @Excel(name = "维修图片")
    private String fixImage;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("vehicleHeadId", getVehicleHeadId())
                .append("fixDate", getFixDate())
                .append("fixType", getFixType())
                .append("fixDescription", getFixDescription())
                .append("fixCost", getFixCost())
                .append("fixPerson", getFixPerson())
                .append("fixImage", getFixImage())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
